package com.design.pattern.designPrinciples.openClose;

import java.math.BigDecimal;

/**
 * 课程的一个具体实现
 * create by yufeng on 2021/7/3 00:09
 */
public class JavaCourse implements ICourse {


    private String id;
    private String name;
    private BigDecimal price;

    public JavaCourse(String id, String name, BigDecimal price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public BigDecimal getPrice() {
        return price;
    }
}
